﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SCSService
{
    public class EmailCampaignService
    {
        public int SaveReceivedEmail(Customer_Received_Email emailObj)
        {

            using (var data = new DataDataContext())
            {
                data.Customer_Received_Emails.InsertOnSubmit(emailObj);
                data.SubmitChanges();

                return emailObj.ReceivedID;
            }
        }
    }
}
